package com.yupi.project.mapper;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.yupi.project.model.entity.Book;
import com.yupi.project.model.entity.Visitor;
import org.apache.ibatis.annotations.Select;

import java.util.Date;
import java.util.List;

/**
* @author Dell
* @description 针对表【visitor(客户资料)】的数据库操作Mapper
* @createDate 2025-06-26 00:27:43
* @Entity com.yupi.project.model.entity.Visitor
*/
public interface VisitorMapper extends BaseMapper<Visitor> {

    @Select("select id from visitor where visitorPhone = #{visitorPhone} or visitorSecondPhone = #{visitorPhone}")
    Long getVisitorIdByVisitorPhone(String visitorPhone);
}




